import Service from "../utils/request";

// 获取验证码
export const getCode = () => {
  return Service({
    url: "/api/code",
    method: "get",
  });
};
// 登录
export const login = (data: any) => {
  return Service({
    url: "/api/login",
    data,
    method: "post",
  });
};
